﻿<h3>Eventbrite.GetUserEventList() Method</h3>
<p>Use this method together with the WebGrid helper to display your Eventbrite events:</p>
<pre class="codePre">@@{
    var events = Eventbrite.GetUserEventList();
    var grid = new WebGrid(events);
}
@@grid.GetHtml(
    tableStyle: "event_table",
    columns: grid.Columns(
        grid.Column(
            columnName: "Title",
            header: "Event Name",
            format: @@&lt;text&gt;&lt;a href="@@item.Url"&gt;@@item.Title&lt;/a&gt;&lt;/text&gt;
        ),
        ...
    )
)
</pre>
@{
    var events = Eventbrite.GetUserEventList();
    var grid = new WebGrid(events);
}
@grid.GetHtml(
    tableStyle: "event_table",
    columns: grid.Columns(
        grid.Column(
            columnName: "Title",
            header: "Event Name",
            format: @<text><a href="@item.Url">@item.Title</a></text>
        ),
        grid.Column(       
            columnName: "StartDate",
            header: "Date",
            format: @<text>@item.StartDateUtc.ToString("MMM dd, yyyy")</text>
        ),
        grid.Column(
            columnName: "Status"
        ),
        grid.Column(
            header: "Sold",
            canSort: false,
            format: @<text>@item.TicketsSold/@item.TicketsAvailable</text>
        )        
    )
)







